package com.topnav.mc.base;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.topnav.mc.admin.security.PermissionGrade;
import com.topnav.mc.admin.view.user.UserView;

import java.util.List;

public interface ICommViewService<T> extends IService<T> {

    /**
     * 取得当前登录用的权限级别
     * @return
     */
    PermissionGrade getPermissionGrade();

    /**
     * 按实体类生成查询条件
     * @param queryWrapper
     * @return
     */
    QueryWrapper<T> genWrapper(QueryWrapper<T> queryWrapper);
}
